package com.zyl.pts.mapper;

import com.zyl.pts.domain.bean.Hurdles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @version v1.0
 * @ProjectName: product_source
 * @Package: com.zyl.pts.mapper
 * @ClassName: HurdlesMapper
 * @Description TODO()
 * @Author 翟玉龙
 * @Date 2024/11/21-11:40
 */
@Mapper
public interface HurdlesMapper {

    /**
     * 根据id查询栏舍信息
     * @param id 栏舍id
     * @return {@link Hurdles }
     */
    Hurdles queryById(String id);

    /**
     * 修改栏舍是否被保存
     * @param hId    栏舍id
     * @param hSaved 存储量
     * @param full 存储是否已满的标签
     */
    void changeSaved(
            @Param("hId") String hId,
            @Param("hSaved") int hSaved,
            @Param("full") String full
    );
}
